{extend name="base" /}
{block name="cont"}
<div class="row">
    <div class="col-xs-12">

        <div class="row">
            <div class="col-xs-12">
                <h3 class="header smaller lighter blue"></h3>
                <div class="table-header">
                    配送员管理
                </div>
                <form class="form-search form-block" method="post" action="{:url('peisong')}" style="margin: 20px 0;display: flex;align-items: center ">
                    用户名：
                    <div class="input-group">
                        <input type="text" name="user_name" value="" class="input-sm search-query" placeholder="用户名">
                    </div>
                    &nbsp;&nbsp;
                    手机号：
                    <div class="input-group">
                        <input type="text" name="user_phone" value="" class="input-sm search-query" placeholder="手机号">
                    </div>

                    <div class="input-group">
                        <button type="submit" class="btn btn-info btn-sm">
                            <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                            搜索
                        </button>
                    </div>
                </form>

                <div class="table-responsive">
                    <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>id</th>
                            <th>openid</th>
                            <th>电话</th>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>金额</th>
                            <th>地址</th>
                            <th>注册时间</th>
                        </tr>
                        </thead>

                        <tbody>
                        {foreach $users as $k=>$v}
                        <tr>
                            <td>{$v.user_id}</td>
                            <td>{$v.user_openid}</td>
                            <td>{$v.user_phone}</td>
                            <td>{$v.user_name}</td>
                            {if $v.user_sex==1}
                            <td>男</td>
                            {else /}
                            <td>女</td>
                            {/if}
                            <td>{$v.user_money}</td>
                            <td>{$v.user_address}</td>
                            <td>{:date('Y-m-d H:i:s',$v.user_ctime)}</td>
                        </tr>
                        {/foreach}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div><!-- /.col -->
</div>
{/block}